-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditionally compile in Arc
#140
Conversation
Apparently the latest release of `bytemuck` doesn't compile on some of the targets that it used to because it uses `Arc`. `Arc` is not a type that exists on every target, because not every targets supports atomics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct me if I'm wrong, but wasn't target_has_atomic
introduced in a Rust version after 1.34? This would break the MSRV.
The
|
That's accurate, the CI isn't that precise with the MSRV. Only the "basic" build sticks exactly to 1.34. Everything else is only tested on latest stable. I'd rather not create even more features for people to have to manage, if it's reasonable to just keep two features together. In the case of I'm inclined to accept this as is, unless @notgull you really think we should break it up? |
I'm fine with this! However, I do think that an MSRV for the alloc feature (and others) should be defined to prevent surprises. |
I agree, but I'm not sure I have the energy for that much CI fiddling |
Can we have a bugfix release for this? My CI blocks me otherwise xD |
Yeah, I had enough time to hit the button before the bus to work but can't sit down at a publish capable thing until some time later today. |
Ah no worries then :D |
1.12.3 should be available now |
Nice, everything works now 👍 |
Apparently the latest release of `bytemuck` doesn't compile on some of the targets that it used to because it uses `Arc`. `Arc` is not a type that exists on every target, because not every targets supports atomics.
Apparently the latest release of
bytemuck
doesn't compile on some of the targets that it used to because it usesArc
.Arc
is not a type that exists on every target, because not every target supports atomics.Error message with 1.12.2: